<template>
  <div class="dashboard-container">
    <head-tool>
      <span slot="before">您好:欢迎来到王者荣耀!</span>
      <div slot="after">
        <el-button type="primary">开始摸鱼</el-button>
        <el-button type="primary">结束摸鱼</el-button>
      </div>
    </head-tool>

    <div class="dashboard-text">name: {{ name }}</div>
    <imageUpload />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
